package com.vpclub.service;

import com.vpclub.dao.BookDao;
import org.springframework.stereotype.Service;

import javax.inject.Inject;

/**
 * @author : leimingchao
 * @Description:
 * @date Date : 2021年06月12日 20:47
 */
@Service
public class BookService {

    // @Autowired(required = false)
    // @Qualifier(value = "bookDao")
    // @Resource(name = "bookDao2")
    @Inject
    private BookDao bookDao;

    public void print() {
        System.out.println(bookDao);
    }

    @Override
    public String toString() {
        return "BookService{" +
                "bookDao=" + bookDao +
                '}';
    }
}
